<template>
  <div class="app">
    <!-- 路由出口 -->
    <router-view></router-view>

    <!-- van-tabbar
         route---路由模式
         v_model--active绑定值 -->
    <van-tabbar
      v-show="$route.meta.showTabbar"
      route
      active-color="#e40137"
      inactive-color="#b4b4bd"
    >
      <van-tabbar-item to="/Company">
        <span>公司</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_gs_nor"> </i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/Question">
        <span>刷题</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_st_nor"> </i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/Find">
        <span>发现</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_fx_nor"> </i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/My">
        <span>我的</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_wode_sel"> </i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  components: {},
  data () {
    return {}
  }
}
</script>

<style lang="less">
.app {
  .iconfont {
    font-size: 28px;
  }
}
</style>
